#ifndef _P2P_CONFIG_H_
#define _P2P_CONFIG_H_

#define PIECE_SIZE (256 * 1024)
#define BLOCK_SIZE (16 * 1024)
#define NO_OF_BLOCKS (PIECE_SIZE / BLOCK_SIZE)
#define SHA1_HASH_SIZE 40
#define SHA1_PART_HASH_SIZE 8 

#define MAX_PEERS 10
#define MAXBUFLEN 17000

typedef struct {
    uint32_t index;
    uint32_t begin;
    uint32_t length;
} block_t;

#endif // ifndef _P2P_CONFIG_H_ 
